<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function test() {
        return new Promise(resolve => {
            setTimeout(() => {
                resolve(true)
            }, 1000)
        })
    }

    console.log('start')
    const list = [1, 2, 3, 4, 5]

    for (let i = 0; i < list.length; i++) {

    }

    console.log('end')
</script>
</body>
</html>
